Skip to content

Added support for image copy path #559

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 7 commits into from

Conversation

drpayyne
Copy link
Contributor

@drpayyne drpayyne commented Apr 17, 2021

Description (*)

Added support for images in copy magento path action.

Fixed Issues (if relevant)

  1. Fixes Additional option for "Copy Path..." action #414

Questions or comments

Contribution checklist (*)

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with integration/functional tests (if applicable)
  • All automated tests passed successfully (all builds are green)

@DmitryFurs
Copy link
Contributor

@drpayyne Can you add support for svg and webp files? Perhaps you should review this section and add some more supported file types. Thanks!

Comment on lines +25 to +26
public static final List<String> WEB_EXTENSIONS
= Arrays.asList("js", "css", "png", "jpg", "jpeg", "gif");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just wondering, isn't possible to use ImageIO::read? This should return null if the provided file cannot be read as an image. Or maybe there are some alternatives to check the file's contentType.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm currently thinking of a way to support ONLY the Magento supported types. There's a lot more image types I missed which @DmitryFurs has described. So I'll check if the ImageIO types match the supported types, and develop a better solution. Thanks for the suggestion @eduard13 and @DmitryFurs!

@drpayyne
Copy link
Contributor Author

drpayyne commented May 5, 2021

Apologies, got occupied with other work. Will try to work on this over this weekend.

@bohdan-harniuk
Copy link
Collaborator

Hello, @drpayyne!

Could you please change the base branch to the 4.3.0-develop?
And, what about current progress?
Did you finish everything here or some changes should be done in addition?

Regards,

@bohdan-harniuk
Copy link
Collaborator

Hello, @drpayyne!

Any updates here?

Regards,

@drpayyne
Copy link
Contributor Author

drpayyne commented Feb 2, 2022

Hi @bohdan-harniuk, unfortunately I'm held up with work and won't be able to get this PR to completion as it's been quite a while too. If anyone can continue this PR, that'd be great. Thank you!

@bohdan-harniuk
Copy link
Collaborator

Hello, @doninAtwix!

Please, take a look at this PR.
Check if you can proceed with rest of development here.

Regards,

@bohdan-harniuk
Copy link
Collaborator

Hello, @drpayyne!

Thank you for your work here!
@doninAtwix has finished this task in the #1020.

Regards,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Additional option for "Copy Path..." action
5 participants